﻿<%@ Page Language="C#" MasterPageFile="~/admin.Master" AutoEventWireup="true" CodeBehind="AddUser.aspx.cs" Inherits="sdamarketing.Administration.AddUser" Title="Ebiznis 2009" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="title1PlaceHolder" runat="server">
    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="text1PlaceHolder" runat="server">
    <table style="width:100%;">
        <tr>
            <td style="width: 170px; text-align: right;">
                <asp:Label ID="lblName" runat="server" meta:resourcekey="Label3Resource1" 
                    Text="Име"></asp:Label>
            </td>
            <td style="width: 210px">
                <asp:TextBox ID="FirstNameTextBox" runat="server" MaxLength="50" 
                    meta:resourcekey="FirstNameTextBoxResource1" ValidationGroup="RegisterGroup" 
                    Width="168px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="FirstNameTextBox" ErrorMessage="Ве молиме внесете име" 
                    meta:resourcekey="RequiredFieldValidator1Resource1" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator1_ValidatorCalloutExtender" 
                    runat="server" TargetControlID="RequiredFieldValidator1">
                </cc1:ValidatorCalloutExtender>
            </td>
            <td rowspan="8">
                <asp:Image ID="Image1" runat="server" Height="170px" 
                    ImageUrl="~/sliki/User.jpg" style="margin-left: 13px" Width="170px" 
                    ImageAlign="Left" />
            </td>
        </tr>
        <tr>
            <td style="height: 9px; width: 170px; text-align: right;">
                <asp:Label ID="lblLastname" runat="server" meta:resourcekey="Label4Resource1" 
                    Text="Презиме"></asp:Label>
            </td>
            <td style="height: 9px; width: 210px">
                <asp:TextBox ID="LastNameTextBox" runat="server" MaxLength="50" 
                    meta:resourcekey="LastNameTextBoxResource1" ValidationGroup="RegisterGroup" 
                    Width="168px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="LastNameTextBox" ErrorMessage="Ве молиме внесете презиме" 
                    meta:resourcekey="RequiredFieldValidator2Resource1" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator2_ValidatorCalloutExtender" 
                    runat="server" Enabled="True" TargetControlID="RequiredFieldValidator2">
                </cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td style="height: 23px; width: 170px; text-align: right;">
                <asp:Label ID="lblEmail" runat="server" meta:resourcekey="Label5Resource1" 
                    Text="E-пошта"></asp:Label>
            </td>
            <td style="height: 23px; width: 210px">
                <asp:TextBox ID="EMailTextBox" runat="server" MaxLength="50" 
                    meta:resourcekey="EMailTextBoxResource1" ValidationGroup="RegisterGroup" 
                    Width="168px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="EMailTextBox" ErrorMessage="Ве молиме внесете Е-пошта" 
                    meta:resourcekey="RequiredFieldValidator3Resource1" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
                <cc1:ValidatorCalloutExtender ID="RequiredFieldValidator3_ValidatorCalloutExtender" 
                    runat="server" Enabled="True" TargetControlID="RequiredFieldValidator3">
                </cc1:ValidatorCalloutExtender>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="EMailTextBox" 
                    ErrorMessage="Ве молиме внесете Е-пошта во точен формат" 
                    meta:resourcekey="RegularExpressionValidator1Resource1" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ValidationGroup="RegisterGroup">*</asp:RegularExpressionValidator>
                <cc1:ValidatorCalloutExtender ID="RegularExpressionValidator1_ValidatorCalloutExtender" 
                    runat="server" Enabled="True" TargetControlID="RegularExpressionValidator1">
                </cc1:ValidatorCalloutExtender>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;">
                <asp:Label ID="lblUsername" runat="server" meta:resourcekey="Label6Resource1" 
                    Text="Корисничко Име"></asp:Label>
            </td>
            <td style="width: 210px">
                <asp:TextBox ID="UsernameTextBox" runat="server" MaxLength="50" 
                    meta:resourcekey="UsernameTextBoxResource1" ValidationGroup="RegisterGroup" 
                    Width="168px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="UsernameTextBox" 
                    ErrorMessage="Ве молиме внесете корисничко име" 
                    meta:resourcekey="RequiredFieldValidator4Resource1" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;">
                <asp:Label ID="lblPassword" runat="server" meta:resourcekey="Label7Resource1" 
                    Text="Лозинка"></asp:Label>
            </td>
            <td style="width: 210px">
                <asp:TextBox ID="PasswordTextBox" runat="server" MaxLength="50" 
                    meta:resourcekey="PasswordTextBoxResource1" TextMode="Password" 
                    ValidationGroup="RegisterGroup" Width="168px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="PasswordTextBox" ErrorMessage="Ве молиме внесете лозинка" 
                    meta:resourcekey="RequiredFieldValidator5Resource1" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;">
                <asp:Label ID="lblRePassword" runat="server" meta:resourcekey="Label8Resource1" 
                    Text="Повтори Лозинка" style="text-align: right"></asp:Label>
            </td>
            <td style="width: 210px">
                <asp:TextBox ID="PasswordConfTextBox" runat="server" MaxLength="50" 
                    meta:resourcekey="PasswordConfTextBoxResource1" TextMode="Password" 
                    ValidationGroup="RegisterGroup" Width="168px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="PasswordConfTextBox" 
                    ErrorMessage="Ве молиме потврдете ја лозинката" 
                    meta:resourcekey="RequiredFieldValidator6Resource1" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="PasswordTextBox" ControlToValidate="PasswordConfTextBox" 
                    ErrorMessage="Внесените лозинки не се совпаѓаат" 
                    meta:resourcekey="CompareValidator1Resource1" ValidationGroup="RegisterGroup">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;">
                <asp:Label ID="lblQuestion" runat="server" Text="Сигурносно прашање"></asp:Label>
            </td>
            <td style="width: 210px">
                <asp:TextBox ID="QuestionTextBox" runat="server" MaxLength="150" 
                    meta:resourcekey="PasswordConfTextBoxResource1" 
                    ValidationGroup="RegisterGroup" Width="168px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="QuestionTextBox" 
                    ErrorMessage="Ве молиме внесете сигурносно прашање" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;">
                <asp:Label ID="lblAnswer" runat="server" Text="Одговор"></asp:Label>
            </td>
            <td style="width: 210px">
                <asp:TextBox ID="AnswerTextBox" runat="server" MaxLength="150" 
                    meta:resourcekey="PasswordConfTextBoxResource1" 
                    ValidationGroup="RegisterGroup" Width="168px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                    ControlToValidate="AnswerTextBox" 
                    ErrorMessage="Ве молиме внесете сигурносен одговор" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;">
                <asp:Label ID="lblPriveleges" runat="server" Text="Привилегија"></asp:Label>
            </td>
            <td style="width: 210px">
                <asp:DropDownList ID="PrivilegesDropDownList" runat="server" Width="168px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="PrivilegesDropDownList" 
                    ErrorMessage="Ве молиме изберете привилегија" ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;" __designer:mapid="1de">
                <asp:Label ID="Label13" runat="server" Text="Образование"></asp:Label>
            </td>
            <td style="width: 210px" __designer:mapid="1e1">
                <asp:DropDownList ID="DropDownListEducation" runat="server" 
                    ValidationGroup="RegisterGroup" Width="168px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="ValidatorEducation0" runat="server" 
                    ControlToValidate="DropDownListEducation" 
                    ErrorMessage="Ве молиме изберете образование" ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;" __designer:mapid="1e4">
                <asp:Label ID="lblNationality" runat="server" Text="Националност"></asp:Label>
            </td>
            <td style="width: 210px" __designer:mapid="1e6">
                <asp:DropDownList ID="DropDownListNationality" 
                    ValidationGroup="RegisterGroup" runat="server" Width="168px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="ValidatorNationality" runat="server" 
                    ControlToValidate="DropDownListNationality" 
                    ErrorMessage="Ве молиме изберете образование" ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;" __designer:mapid="1e9">
                <asp:Label ID="Label14" runat="server" Text="Пол"></asp:Label>
            </td>
            <td style="width: 210px" __designer:mapid="1eb">
                <asp:DropDownList ID="DropDownListSex" runat="server" 
                    ValidationGroup="RegisterGroup" Width="168px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="ValidatorSex" runat="server" 
                    ControlToValidate="DropDownListSex" ErrorMessage="Ве молиме изберете пол" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;" __designer:mapid="1ee">
                <asp:Label ID="Label15" runat="server" Text="Возраст"></asp:Label>
            </td>
            <td style="width: 210px" __designer:mapid="1f0">
                <asp:DropDownList ID="DropDownListAge" runat="server" 
                    ValidationGroup="RegisterGroup" Width="168px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="ValidatorAge" runat="server" 
                    ControlToValidate="DropDownListAge" ErrorMessage="Ве молиме изберете возраст" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; text-align: right;" __designer:mapid="1f3">
                <asp:Label ID="Label16" runat="server" Text="Социјална структура"></asp:Label>
            </td>
            <td style="width: 210px" __designer:mapid="1f5">
                <asp:DropDownList ID="DropDownListStructure" runat="server" 
                    ValidationGroup="RegisterGroup" Width="168px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="ValidatorStructure" runat="server" 
                    ControlToValidate="DropDownListStructure" 
                    ErrorMessage="Ве молиме изберете социјална структура" 
                    ValidationGroup="RegisterGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 170px; height: 129px;">
                </td>
            <td style="width: 210px; height: 129px;">
                <asp:Button ID="saveButton" runat="server" onclick="saveButton_Click" 
                    Text="Зачувај" ValidationGroup="RegisterGroup" />
                <cc1:ConfirmButtonExtender ID="saveButton_ConfirmButtonExtender" runat="server" 
                    ConfirmText="Дали сте сигурни?" Enabled="True" TargetControlID="saveButton">
                </cc1:ConfirmButtonExtender>
            </td>
            <td style="height: 129px">
                </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                    meta:resourcekey="ValidationSummary1Resource1" 
                    ValidationGroup="RegisterGroup" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblMessage" runat="server" ForeColor="Red" 
                    meta:resourcekey="UserExsistLabelResource1"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="mainTitle2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="title2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="text2PlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content7" runat="server" 
    contentplaceholderid="mainTitle1PlaceHolder">
                <h2 class="title">
                    &nbsp;&nbsp;внесете податоци за корисникот</h2>
                
</asp:Content>

